package test0ne.多线程;

public class JoinTest {
    public static void main(String[] args) throws InterruptedException{
        Thread parse1 = new Thread(new Runnable() {
            @Override
            public void run() {

            }
        });

        Thread parse2 = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("parse2 finish");
            }
        });

        parse1.start();
        parse2.start();

        parse1.join();
        parse2.join();

        System.out.println("all parse finish");
    }
}
